package com.tanhua.server.exception;

import com.tanhua.model.vo.ErrorResult;
import lombok.Data;

//自定义异常
@Data
public class BusinessException extends RuntimeException {

    private ErrorResult vo;

    //构造方法
    public BusinessException(ErrorResult vo){
        super(vo.getErrMessage());  //调用父类的构造方法
        this.vo = vo;
    }

}
